<?php
session_start();
ini_set('display_errors', 'On');
error_reporting(E_ALL);
      include '../include/LesEntreprises.php';
      include '../include/class.pdoSio.inc.php';

            $nomEntreprise = $_POST['nomEntreprise'];
            $adresseEntreprise = $_POST['adresseEntreprise'];
            $nomContact = $_POST['nomContact'];
            $courielContact = $_POST['courielContact'];
            $themeStage = $_POST['themeStage'];
            $periodeDebut = $_POST['periodeDebut'];
            $periodeFin = $_POST['periodeFin'];
            
            LesEntreprises::ajouterEntreprise($nomEntreprise, $adresseEntreprise, $nomContact, $courielContact, $themeStage, $periodeDebut, $periodeFin);
            header("Location:../index.php");